package com.echartsdata.Entityimp;

import com.alibaba.fastjson2.JSONObject;
import com.echartsdata.Mapper.InformationMapper;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/***
 * 指南接口实现类
 */
@Component
public class InformationMapperimp {
    @Resource
    private InformationMapper informationMapper;
    public String get_information(){
        System.out.println("看看指南数据返回的什么数据"+informationMapper.get_Information());
        //json数据处理
        JSONObject json = new JSONObject();
        json.put("data",informationMapper.get_Information());
        System.out.println("转换后的json数据是"+json.toString());
        return json.toString();
    }
}
